package com.luoran.system.controller;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.luoran.system.domain.SysPost;
import com.luoran.system.service.ISysPostService;
import com.sun.scenario.effect.Crop;


public class UploadDataListener implements ReadListener<SysPost> {

    private ISysPostService sysPostService;

    public UploadDataListener(ISysPostService sysPostService) {
        this.sysPostService=sysPostService;
    }
    public UploadDataListener(Object p0) {

    }

    @Override
    public void invoke(SysPost sysPost, AnalysisContext analysisContext) {
        sysPostService.insertUsers(sysPost);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("--------解析完之后的方法----------");

    }
}

